package exam3;

/**
 * @author HB
 * @version 1.0
 * @description
 * @date 2021/6/18
 */
public class BuilderClient  {

    public static void main(String args[])
    {
        //动态确定套餐种类
        MealBuilder mb=(MealBuilder)XMLUtil.getBean();
        KFCWaiter waiter = new KFCWaiter(mb);
        //获得套餐
        Meal meal = waiter.construct();
        System.out.println("套餐组成：");
        System.out.println(meal.getFood());
        System.out.println(meal.getDrink());
    }
}
